import type { IList, IResult } from "@/types/common";
import { getAxios, commonAxiosJson, exportExcelAxios } from "@/utils/request.js";
/* 招商加盟 地址 */
const url = "/back/investment-record";

/* 获取 招商加盟列表信息 */
export const getInvestmentRecordInfo = <T, D>(params: D): Promise<IResult<IList<T>>> => {
  return getAxios<IList<T>, D>(url, params);
};
/* 修改招商加盟联系信息 */
export const putInvestmentRecordContactInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/update-is-contact", params, "PUT");
};
/* 修改招商加盟平台备注信息 */
export const putInvestmentRecordPlatformRemarkInfo = <T, D>(params: D): Promise<IResult<T>> => {
  return commonAxiosJson<T, D>(url + "/update-platform-remark", params, "PUT");
};
/* 导出 招商加盟列表信息 */
export const getExportDataListFile = <D>(params: D): Promise<Blob> => {
  return exportExcelAxios<D>(url + "/export", "GET", params);
};
